]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceThumbnails: Expand workspaces before scale-in animation
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Jan 2021 15:25:28 +0000 (16:25 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Jan 2021 16:55:44 +0000 (17:55 +0100)
commitb84eb2437d47db4a24ff415bebef2623c407dbf0
treed134a9390d4d6b51166335b20b92752803a0fdf0
parentac3faac38ce5cbae834faedc59cd241fed22ae4e
workspaceThumbnails: Expand workspaces before scale-in animation

When the original animation was implemented, workspaces would only
ever be added at the end. We therefore got away with not having a
separate EXPANDING stage corresponding to the existing COLLAPSING
one when animating out.

Since support for creating in-between workspaces via DND was added,
this is no longer the case. And now that the thumbnails are centered,
the jump is quite noticeable.

Address this by adding new transitional states, so that we can
expand new thumbnails before scaling them in.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1609>
js/ui/workspaceThumbnail.js